home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
ct_ntwre
/
xmeter.doc
< prev
next >
Wrap
Text File
|
1991-09-09
|
11KB
|
346 lines
Computer Tyme XMETER * Copyright 1990-91 by Marc Perkel
All Rights Reserved * Version 1.6 * Release Date: 09-09-91
Computer Tyme * 411 North Sherman, Suite 300 * Springfield Mo. 65802
(800) 548-5353 Sales * (417) 866-1222 Voice * (417) 866-1665 Data
Shareware Version. This program is not registered. Usage requires purchase.
These programs are part of the DOS ToolBox or Network Survival Kit.
Price: $95/Server or $995 unlimited.
Usage: XMETER <Semaphore> <MaxUsers> /O/C/U/L
Semaphore is any name you want to give a semaphore.
MaxUsers is the maximum number of users allowed to use the
semaphore or the name of a meter list file.
/O Open semaphore.
/C Close cemaphore.
/U Returns number of semaphore users.
/L Outputs status line for log file redirection.
/E Returns number of semaphore users as an error level.
/F:Name specifies log file name.
Example: XMETER TEST 10 /O
This opens semaphore TEST if less than 10 users have it open,
otherwise to returns DOS ErrorLevel 1.
Example: XMETER TEST /C
This closes semaphore TEST allowing others to use it.
Example: XMETER TEST METER.LST /O/L/F:USAGE.LOG
This opens semaphore TEST if less than the number of users
specified in METER.LST have it open, otherwise to returns
DOS ErrorLevel 1. Log information is appended to log file
named USAGE.LOG.
XMETER is a software metering program for Novell Networks. Its
simple, uses NO RAM, and does no require any VAPs or NLMs running on
the server.
XMETER uses Novells semaphores to monitor program usage. What you do
is create a BATCH file to load your software. You open a semaphore
on the way in and close it on the way out. The batch file must be
programmed to restrict access to the program. XMETER returns dos
errorlevel codes to control batch files.
Example BATCH file for WordStar limited to 12 users:
@Echo Off
XMETER WORDSTAR 10 /O
if ErrorLevel 1 goto deny
cd\wordstar
ws
rem Close Semaphore when done.
XMETER WORDSTAR /C
goto e
:deny
cls
Echo Access Denied! All copies of WORDSTAR are in use.
rem Exit Here
:e
Using a meter list file:
------------------------
XMETER can use a special text file to limit semaphore access. To use
this method, substitute the name of the list file for the MaxUsers
parameter as follows:
XMETER Lotus METER.LST /O
METER.LST
Lotus 10
Wordstar 15
dBase 9
This allows you to maintain the number of copies of each program in
a single list.
Usage Tracking:
---------------
XMETER provides usage tracking by outputing a comma delimited ascii
line for each semaphore open and close. You must select the /L
switch to activate this feature.
Example: XMETER TEST METER.LST /O/L/F:USAGE.LOG
This command appends the following line to the file USAGE.LOG.
"MARC","254:41","2","LOTUS","1","O","Y","08-26-90","17:43:22"
The line contains 9 fields as follows:
1) User Name
2) Semaphore Name
3) Number of Semaphore users after execution
4) Command, O=Open C=Close
5) Success Status, Y=Success N=Failure
6) Date
7) Time
8) Internet Address of WorkStation
9) Logical Connection Number
Tricks:
-------
When XMETER creates semaphores, it adds the letters XM- to the front
of the semaphore name. So semaphore TEST is really XM-TEST. The idea
here is so that all XMETER semaphores can be indetified from other
Netware semaphores.
Whenever a workstation first uses XMETER it creates a semaphore
named XM-XMETER. This can be used to see how many users are using
XMETER software. This semaphore can be cleared by using the command:
XMETER XMETER/C
If a user turns off their computer while running an application,
Novell will release their semaphores after 15 minutes. All
semaphores are also released when the user logs out. If a user
reboots within 15 minutes, the semaphores are cleared upon login.
Market Position:
----------------
This software package is not the best program out there. It is
designed around being a simple 'just works' solution to software
metering. It is flexable and uses no memory on the workstation. I am
looking for feedback on this product.
For more sophisticated software metering use MarxMenu.
Paying for this program:
------------------------
XMETER is distributed as SHAREWARE. This is the honor system. It
isn't a free program. You can evaluate this program but if you
implement it for usage you are expected to pay for it.
I would like to thank those who have paid for this program so that
my family can continue to EAT, and I can continue to write more
programs like this instead of working at a REAL JOB.
Other Computer Tyme Software:
======================================================
The Computer Tyme Dos ToolBox... Makes DOS easier for the novice,
more powerful for the professional.
DIRECTORY MASTER is a powerful hard disk managment utility. It
brings up your hard disk files and allows you to mark selected
files so you can copy them, delete them, or move them. It also
allows you to rename files, change dates, and change attributes.
You can also run programs or set up your function keys to run
programs on selected files.
DOLIST makes being at DOS easier. It gives you full line editing,
like a word processor, for your commands. It also stores commands
so that you can re-execute them. It remembers subdirectories and
allows you to go back to them by pressing the TAB key. It offers
programmable function keys, DOS extensions, multiple execution,
and many more features you have got to have.
PICK DIRECTORY allows you to move through the directory system by
displaying a graphic tree and letting you use your arrow keys to
move around. It also lets you create, delete, rename, and hide
directories.
TEDIT (from SemWare) is a powerful, easy to use full screen
editor.
MARXTSR is a set of memory and TSR management utilities that let
you load and unload TSRs (Terminate and stay resident programs)
from memory. Utilities to list menory allocation and turn TSR's
on and off.
And many more ... Also includes is D, a fancy directory listing
program; WHEREIS, for finding stuff on you hard disk, SORT, MOVE,
FIND, FREE, PIPEDIR, VERSION, and many more.
The Dos Toolbox sells for $59.95.
======================================================
We are also selling QEdit from Semware. QEdit is a professional
editor from Semware. TEdit is a mini version of QEdit. If you
like TEdit, You'll love QEdit.
1-800-548-5353 Order Line
1-417-866-1222 Voice Line
1-417-866-1665 BBS Data line * 1200/2400 * 8N1 * ANSI or VT100
MARXMENU:
For the menu user who is interested in POWER!
MarxMenu version is a menu system that uses NO RAM. MarxMenu is
compatible with all networks and contains a powerful menu language.
This language gives you complete screen control as well as
conditional menus. Math and string functions as well as
multidimensional arrays are supported. MarxMenu can read environment
variables, ports, ram locations, time, dates, the contents of text
files, ect. and make decisions on them.
Screen control includes multi-layer exploding windows with
unlimited number of selections and unlimited windows. 43/50 line
ega and vga modes are supported. MarxMenu contains a screen
blanker, password security on anything, keyboard lockout.
MarxMenu can run programs while staying resident and read the dos
errorlevel codes they return or marxmenu can return custom
errorlevel codes to a calling program or batch file. MarxMenu can
view text files in a window, read text files into an array and
let you choose a line from that array in a window. MarxMenu can
write string arrays to text files.
This menu system is targeted at the user whose primary interest
is POWER! Here is a simple sample of what MarxMenu script looks
like:
==========================================
;This menu is a sample of a simple menu.
;To run this menu type 'MARX SAMPLE'
TextColor Yellow Red
ClearScreen
BoxBorderColor Green Blue
BoxInsideColor Yellow Blue
DrawBox 25 7 32 13
WriteCenter '* Sample Menu *'
Writeln
Writeln
Writeln ' A - Directory'
Writeln ' B - Wide Directory'
Writeln ' C - Run ChkDsk'
Writeln ' D - Type Menu to Screen'
Writeln ' E - Edit This Menu'
Writeln ' F - Drop to Dos'
Writeln ' Esc - Exit'
Writeln
Write ' Select: '
OnKey 'A'
DIR
Pause ;Lets you see the directory before screen clears
Onkey 'B'
DIR/W
Pause
OnKey 'C'
CHKDSK
Pause
OnKey 'D'
TYPE SAMPLE.MNU|MORE
Pause
OnKey 'E'
TEDIT SAMPLE.MNU
OnKey 'F'
@Echo To Return to the SAMPLE menu type EXIT
@Echo .
COMMAND
MarxMenu comes with MarxEdit and MARXTSR manager and a few goodies out of
the DOS ToolBox. The Network Survival Kit is a network version of almost
every utility I've ever written. It's sold on a per fileserver basis.
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| APPROVED VENDOR
==========================================
Make Check Computer Tyme Order Form
Payable To: 411 North Sherman Suite 300
Springfield Mo. 65802
(417) 866-1222 (800) 548-5353
Please send me Computer Tyme Software.
=============================================================
Name: ________________________________________________
Address: ________________________________________________
City/St/Zip: ________________________________________________
Phone: ________________________________________________
Computer: ________________________________________________
Got From: ________________________________________________
Comments: ________________________________________________
Single User Version:
___ Enclosed is $59.95 for MarxMenu.
___ Enclosed is $59.95 for the DOS ToolBox.
___ Enclosed is $99.95 for MarxMenu, the Dos ToolBox and DM3.
Network Version (1 per file server):
___ Enclosed is $95 for XMeter.
___ Enclosed is $495 for Network Survival Kit.
___ Add $3.00 for Shipping and Handling.
___ I need 3 1/2 Inch Media.
Credit Card Number: _______________ Expiration Date: ________
Signature: __________________________________________________
Master Card __ Visa __ Discover __
* We do not take American Express *
=============================================================